home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Tools / nShell™ 1.0.3 / nShell / bin / read / read.rsrc / TEXT_16000_man general.txt < prev    next >
Encoding:
Text File  |  1994-09-24  |  620 b   |  18 lines

  1. read - read input and store in shell variables
  2.  
  3. SYNOPSIS
  4.  
  5. read variable [variable...]
  6.  
  7. DESCRIPTION
  8.  
  9. This command  collects input strings and stores them in shell variables.  If more than one variable is used, the first word of input will go in the first variable, and so on.  All remaining characters will go in the last variable listed.  Quoted strings are considered to be a single "word", and will go together into a shell variable.
  10.  
  11. This routine collects data from a single line, and terminates when a ^D or Return is encountered.
  12.  
  13. RETURN CODES
  14.  
  15. <0    Error
  16. 0    Variables were filled
  17. 1    ^D was encountered before any data
  18.